package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class VendingMachine {


    private Long id;
    //售货机类型',
    private Integer vmType;
    // default '000'null comment '售货机软编号',
    private String innerCode;
    // bigint not null comment '点位Id',
    private Integer nodeId;
    // int default 0not null comment '售货机状态，0:未投放;1-运营;3-撤机',
    private Integer vmStatus;
    //datetime;default '2000-01-01 00:00:00'not null comment '上次补货时间',
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastSupplyTime;
    //default '10'not null comment '所在城市ID',
    private String cityCode;
    // int default 0null comment '地区',
    private Integer areaId;
    // bigint not null comment '创建人id',
    private Long createUserId;
    //varchar(50)                               null comment '创建人姓名',
    private String createUserName;
    //int not null comment '商圈Id',
    private Integer businessId;
    // bigint not null comment '区域Id',
    private Long regionId;
    //int not null comment '点位主Id',
    private Integer ownerId;
    //varchar(100)                              null comment '所属合作商名称',
    private String ownerName;
    // varchar(50)                               null comment '客户端连接Id,做emq认证用',
    private String clientId;
    //double default 0null comment '经度',
    private Double longitudes;
    // double default 0null comment '维度'
    private Double latitude;
    // datetime not null comment '创建时间',
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime create_time;
    // datetime not null comment '修改时间',
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime update_time;


}
